package com.demo3;

public class ComputerDemo {
    public static void main(String[] args) {
        Computer computer = new LapTop();

        computer.setHardDrive("150G硬盘");
        computer.setMemory("16G内存");
        System.out.println(computer.getHardDrive()+","+computer.getMemory());
        computer.runCode();
    }
}
